<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE HTML>
<html>
<head>
	<title>用户注册</title>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">
	<link href="css/style_register.css" rel="stylesheet" type="text/css" media="all"/>
	<link type="text/css" rel="stylesheet" href="bootstrap/css/bootstrap.min.css">
	<script type="text/javascript" src="jQuery/jquery.min.js"></script>
	<script type="text/javascript" src="bootstrap/js/bootstrap.min.js"></script>
	<script type="text/javascript">
		function check()
		{
			var Password1=document.getElementById("Password1").value;
			//取出第一个文本框里输如的值密码一
			var Password2=document.getElementById("Password2").value;
			//取出第二个文本框里输如的值密码二
			if(Password1!=Password2)
			{
				alert("两次输入的密码不一致，请重新输入");
			}
		}
	</script>
</head>
<body>
<div class="login">
	<div class="login-top">
		<h1>用户注册</h1>
		<form action="error.jsp" method="post">
			<span class="glyphicon glyphicon-user" aria-hidden="true"></span>
			用户名:　<input type="text" value="Username" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Username';}">
			<span class="glyphicon glyphicon-envelope" aria-hidden="tr ue"></span>
			邮箱:　　<input type="text" value="example@email.com" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'example@email.com';}">
			<span class="glyphicon glyphicon-lock" aria-hidden="true"></span>
			密码:　　<input type="password" value="Password1" id="Password1" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Password';}">
			<span class="glyphicon glyphicon-lock" aria-hidden="true"></span>
			确认密码:<input type="password" value="Password2" id="Password2" onfocus="this.value = '';" onblur="if (this.value == '') {this.value = 'Password';}">
	    </form>
	    <div class="login-button">
			<input type="submit" value="注册" onclick="check()">
	    </div>
	</div>
	<div class="login-bottom">
		<h3>已有账号，<a href="login.html">马上登陆</a> </h3>
	</div>
</div>
</body>
</html>